package com.ruoyi.djb.service.impl;

import com.ruoyi.common.core.text.Convert;
import com.ruoyi.djb.domain.DjbExam;
import com.ruoyi.djb.mapper.DjbExamMapper;
import com.ruoyi.djb.service.IDjbExamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 审核Service业务层处理
 * 
 * @author xxd
 * @date 2024-11-05
 */
@Service
public class DjbExamServiceImpl implements IDjbExamService 
{
    @Autowired
    private DjbExamMapper djbExamMapper;

    /**
     * 查询审核
     * 
     * @param id 审核主键
     * @return 审核
     */
    @Override
    public DjbExam selectDjbExamById(Integer id)
    {
        return djbExamMapper.selectDjbExamById(id);
    }

    /**
     * 查询审核列表
     * 
     * @param djbExam 审核
     * @return 审核
     */
    @Override
    public List<DjbExam> selectDjbExamList(DjbExam djbExam)
    {
        return djbExamMapper.selectDjbExamList(djbExam);
    }

    /**
     * 新增审核
     * 
     * @param djbExam 审核
     * @return 结果
     */
    @Override
    public int insertDjbExam(DjbExam djbExam)
    {
        return djbExamMapper.insertDjbExam(djbExam);
    }

    /**
     * 修改审核
     * 
     * @param djbExam 审核
     * @return 结果
     */
    @Override
    public int updateDjbExam(DjbExam djbExam)
    {
        return djbExamMapper.updateDjbExam(djbExam);
    }

    /**
     * 批量删除审核
     * 
     * @param ids 需要删除的审核主键
     * @return 结果
     */
    @Override
    public int deleteDjbExamByIds(String ids)
    {
        return djbExamMapper.deleteDjbExamByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除审核信息
     * 
     * @param id 审核主键
     * @return 结果
     */
    @Override
    public int deleteDjbExamById(Integer id)
    {
        return djbExamMapper.deleteDjbExamById(id);
    }
}
